package com.seafood.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 冷链异常报警DTO
 */
@Data
public class ColdChainAlertDTO {
    
    private Long id;
    
    private Long coldChainRecordId;
    
    @NotNull(message = "报警时间不能为空")
    private String alertTime;
    
    @NotBlank(message = "报警类型不能为空")
    private String alertType;
    
    @NotBlank(message = "严重程度不能为空")
    private String severity;
    
    @NotBlank(message = "报警描述不能为空")
    private String description;
    
    private String currentValue;
    
    private String thresholdValue;
    
    private String location;
    
    private String gpsCoordinates;
    
    private Boolean isResolved = false;
    
    private String resolvedTime;
    
    private String resolvedBy;
    
    private String resolutionNotes;
    
    private Boolean notificationSent = false;
    
    private String createdAt;
    
    private String updatedAt;
}